﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Shamrock.Models
{
    public partial class Image
    {
        public string ViewFilePath
        {
            get
            {
                return VirtualPathUtility.ToAbsolute(FilePath);
            }
        }
        public string ViewThumbPath
        {
            get
            {
                return VirtualPathUtility.ToAbsolute(ThumbPath);
            }
        }
        public string FileName
        {
            get
            {
                return String.Concat(FileTimestamp, ".", Extension);
            }
        }
        public int SizeKB
        {
            get
            {
                return (Size/1024);
            }
        }
    }
}